import React from "react";

import { StyleSheet, Text, View } from "react-native";
import PropTypes from "prop-types";

const NCText = props => {
  const { style, text, textStyle } = props;

  return (
    <View style={[styles.container, style]}>
      <Text style={textStyle}>{text}</Text>
    </View>
  );
};

NCText.propTypes = {
  text: PropTypes.string,
  textStyle: PropTypes.any,
};
NCText.defaultProps = {
  text: "",
  textStyle: {},
};

const styles = StyleSheet.create({
  container: {
    justifyContent: "center",
    alignItems: "center",
  },
});

export default NCText;
